
/**
 * 
 * @param {*} image gif 图片路径
 * @param {*} options billboard配置
 * @returns billboard
 */

export default function billboardGif(image , options){
  let sup = new RubbableGif({
    gif: image
  })
  sup.load()
  let billboardOption = {
    image: new Cesium.CallbackProperty(() => {
        return sup.get_canvas().toDataURL("image/png")
    }, false),
    verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
    heightReference: Cesium.HeightReference.RELATIVE_TO_GROUND,
    ...options
  }
  return billboardOption
}